package com.ytf.test.tenth;

/**
 * @author: YTF
 * @date: 2025/2/25 8:44
 * @version: 1.0
 * @description:
 */
public class Parcel6 {
    private void internalTracking(boolean b){
        if (b){
            class TrackingSlip{
                private String id;

                public TrackingSlip(String id) {
                    this.id = id;
                }

                public String getSlip() {
                    return id;
                }
            }
            TrackingSlip trackingSlip = new TrackingSlip("slip");
            String slip = trackingSlip.getSlip();
        }
    }
    public void track(){
        internalTracking(true);
    }

    public static void main(String[] args) {
        Parcel6 parcel6 = new Parcel6();
        parcel6.track();
    }
}
